package com.mobile.ado.setting.calendar;

public class DateRec {

	private int x;
	private int y;
	private int day;

	public static int rectSize = 20;

	public static int diff = 10;

	public DateRec(int x, int y, int day) {
		super();
		this.x = x;
		this.y = y;
		this.day = day;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public boolean isSelected(float selectedX, float selectedY) {

		if ((selectedX >= x - diff && selectedX <= x + rectSize + diff)
				&& (selectedY >= y - rectSize - diff && selectedY <= y + diff)) {
			return true;
		}

		return false;

	}

}
